filterIsInstanceToOption

inline fun <T> filterIsInstanceToOption(): Option<Either<T, R>>

Returns Some containing the same Left casted to type T if it is T. Otherwise returns None.

Return

Some containing the same Left casted to type T if it is T. Otherwise returns None.

Parameters

T

Required type of the optional value.